<?php 
$translate = new Front_Model_Translate();
$model = new Administrator_Model_Product_View();
$info = $model->GetProduct_type($this->id);
$storeinfo = $model->GetProduct_type($info['store']);
?>
<div class="bread">
	<ul>
		<li class="first"><a href="<?php echo BASE_URL?>/">Trang chủ</a></li>
		<?php 
		echo '<li><a href="'.$translate->ProStoreLink($info['store'], $this->request['lang']).'">'.$storeinfo['name'].'</a></li>';
		echo '<li>'.$info['name'].'</li>';
		?>
	</ul>
</div>
<div class="content">
	
<?php $i = 0;
foreach ($model->GetAllPro_catByTye($this->id) as $array) {
	$class = '';if($i%3 == 1) $class = 'psystem';if($i%3 == 2) $class = 'pdevice';
	echo '<div class="product '.$class.'">';
		echo '<div class="ptitle"><span>'.$array['name'].'</span></div>';
		echo '<div class="plist">';
		foreach ($model->GetAllProductByCatCount($array['id'], 10) as $value) {
			echo '<div class="item">';
				echo '<a href="'.$translate->ProdetailsLink($value['id'], $this->request['lang']).'"><img src="'.$model->ImageUrl('product', $value['image']).'">'.$value['name'].'</a>';
				echo '<div class="intro">';
				$curinfo = $model->GetPro_curInfo($value['currency']);	
					echo '<span class="price">'.$model->FormatFloatNumber($value['price']).'</span>';
					echo '<span class="curr">'.$curinfo['name'].'</span>';
				echo '</div>';
			echo '</div>';
		} 
		echo '</div>';
	echo '</div>';
	$i++;
}
?>	
</div><!-- end content -->
<div class="sidebar">
<?php echo $this->blksupport($this->request,$this->dirImg)?>
<?php echo $this->blkadv($this->request,$this->dirImg,"right")?>
<?php echo $this->blktopproduct($this->request,BASE_URL.'/public/images/product')?>
<?php echo $this->blkadv($this->request,$this->dirImg,"rightbot")?>
</div><!-- end sidebar -->
<div class="pay"><img src="<?php echo $this->dirImg?>/pay.png"></div>